<template>
	<view class="hot-contraller">
		<image class="logo" src="/static/logo.png" mode="aspectFit"/>
		<view class="search-box">
			<my-search placeholderText="搜索商品名称"></my-search>
		</view>
		<view class="tabbar-box">
			<tabbar :tabData="tabData" :defaultIndex="0"></tabbar>
		</view>
	</view>
</template>
<script>
	import {getHotTabs} from 'api/index'
	export default {

		data() {
			return {
				tabData:[{k:'top',v:'推荐'},{k:'guonei',v:'国内'},{k:'guoji',v:'国际'},{k:'yule',v:'娱乐'},{k:'tiyu',v:'体育'},{k:'junshi',v:'军事'},{k:'keji',v:'科技'}
				,{k:'caijing',v:'财经'},{k:'youxi',v:'游戏'},{k:'qiche',v:'汽车'},{k:'jiankang',v:'健康'}],
				currentIndex:0
			};
		},
		created(){
			this.loadHotTbas();
		},
		methods:{
			async loadHotTbas(){
				//const res=await getHotTabs();
				//console.log(res.result.data);console.log('dddd');
				//this.tabData=res.result.data;
			}
		}
	}
</script>

<style lang="scss" scoped>
.hot-contraller{
	background-color: $uni-bg-color;
}
.logo{
	width:100%;
	height:80px;
}
.search-box{
	margin:8px;
}
</style>
